<?php
namespace Admin\Controller;
use  Think\Controller;
use Think\Exception;

/* 
 *网站基本设置
 * 
 */
class BasicController extends CommonController{
    public function index(){
        $result=D("Basic")->select();
        $this->assign("vo",$result);
        $this->display();
    }
    //站点添加
    public function add(){
     if(IS_POST){
        if(!$_POST['title']){
            return show(0,"title不能为空");
        } 
       if(!$_POST['keywords']){
           return show(0,"关键词不能为空");
       }  
       if(!$_POST['description']){
           return show(0,"描述不能为空");
       }  
         
       
        D("Basic")->save($_POST);
        return show(1,"配置成功");
     }else{
         
         return show(0,"没有数据提交");
     }   
        
        
        
    }
    //站点修改
   public function save(){
       
       
       
       
   }
    
    
    
}


